package com.hf.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hf.entity.Config;
import com.hf.entity.Customer;
import com.hf.mapper.ConfigMapper;
import com.hf.util.Result;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author eight
 * @since 2021-06-06
 */
@RestController
@RequestMapping("/config")
public class ConfigController {
	@Autowired
	ConfigMapper mapper;
	/**
	 * 查询
	 * 
	 * @param cusName
	 * @param page
	 * @param limit
	 * @return http://localhost:8080/customer/getList?page=1&limit=10
	 */
	@RequestMapping("/getConfig")
	public Object getList() {
		List<Config> list =mapper.selectList(null);
		return new Result(0, "查询成功", list, list.size());
	}

}
